/**
 * @author MIAO
 * Created on 2011-10-6
 * For more information, please visit:ismiao.com
 */
package ismiao.com.designPattern.Composite.secondHalf2010;

import java.util.ArrayList;
import java.util.List;

public class ConcreteCompany extends Company {

	public ConcreteCompany(String name) {
		super(name);
	}

	// 注意List和ArrayList初始化写法
	private List<Company> children = new ArrayList<Company>();

	@Override
	public void Add(Company c) {
		children.add(c);
	}

	@Override
	public void del(Company c) {
		children.remove(c);
	}

}
